//
//  LZSettingsTableViewCell.m
//  laziz_Consumer
//
//  Created by XMac on 16/10/28.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "LZSettingsTableViewCell.h"
#import "UIView+Rotation.h"

@interface LZSettingsTableViewCell ()
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;

@property (strong, nonatomic) IBOutlet UILabel *detailTitleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imageArrow;

@property (weak, nonatomic) IBOutlet UIView *lineView;

@end

@implementation LZSettingsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.imageArrow setLanguageRotaion];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)showDetailLabelWithText:(NSString *)text {
    
    _detailTitleLabel.hidden = (text.length == 0);
    _detailTitleLabel.text = text;
}

-(void)changeTitle:(NSString *)xTitle{
    _titleLabel.text = xTitle;
}

- (void)showLine:(BOOL)isShow {
    self.lineView.hidden = !isShow;
}

@end
